package learning;

import java.io.FileNotFoundException;
import java.io.RandomAccessFile;

public class Test {
	public static void main(String[] args) {
//        p("abc".matches("..."));
//        p("36578".matches("\\d*"));
//        p("128725".matches("\\d*[.]{1}\\d*"));
//        p("www.baidu.com.cn".matches("[w]{3}[.]{1}[a-z]*[.com.cn]{7}"));
		try {
			RandomAccessFile srf=new RandomAccessFile("D:/films/abc.wmv", "rw");
			RandomAccessFile dsf=new RandomAccessFile("E:/c.wmv", "rw");
			int b=0;
			while((b=srf.read())!=-1){
				dsf.write(b);
				
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	static void p(Object o) {
		System.out.println(o);
	}
}
